package com.example.zqm.git72.Service;

import com.example.zqm.git72.JavaBean.Activity;
import com.example.zqm.git72.JavaBean.CreateFaq;
import com.example.zqm.git72.JavaBean.Master;
import com.example.zqm.git72.JavaBean.Masterfaq;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/4/10.
 */

public interface MasterService {
 @GET("workout/api.php/lists/mod/master")
    Call<List<Master>>getList();
//    @GET("workout/api.php/get/mod/master/SessionID/{sid}/related/1/id{id}/map/clubjw")
//    Call<Master>getMasterById( @Path("sid")  String sid,
//            @Path("id")  String id
//    );
    @GET("workout/api.php/get/mod/master/related/1/id/{id}")
    Call<Master>getMasterById(
          @Path("id")  String id
    );
    @GET("workout/api.php/lists/mod/masterfaq/master_id/{master_id}")
    Call<List<Masterfaq>>getListfaq(
            @Path("master_id")  String master_id
    );
    @GET("workout/api.php/create/mod/masterfaq/user_id/{user_id}/master_id/{master_id}/question/{question}")
    Call<String>createFaq(
            @Query("user_id") String user_id,
            @Query("master_id") String master_id,
            @Query("question") String question
    );
    @GET("workout/api.php/focus/fan_id/{fan_id}/userid/{user_id}/fans_type/2")
    Call<Integer>iscollect(
            @Path("fan_id") String fan_id,
            @Path("user_id") String user_id
    );
    @GET("workout/api.php/delete/mod/fans/fan_id/{fan_id}/user_id/{user_id}/fan_type/2")
    Call<Integer>decollect(
            @Path("fan_id") String fan_id,
            @Path("user_id") String user_id
    );
}
